package study.stream;

import java.util.Arrays;
import java.util.stream.IntStream;
import java.util.stream.Stream;

/**
 * @Author 金贵权
 * @Date 2023/6/21 16:25
 **/
public class Demo01 {
    public static void main(String[] args) {
        int[] intArr = {1,2,3,4,5,6,7,8,9,10,11,12,13};
        Integer[] integers = {1,2,3,4,5,6,7,8,9,10,11,12,13};

        IntStream intStream = Arrays.stream(intArr);
        Stream<int[]> intArr1 = Stream.of(intArr);
        Stream<Integer> integerStream = Arrays.stream(integers);
        Stream<Integer> integers1 = Stream.of(integers);

        intStream.forEach(System.out::println);
        integerStream.forEach(System.out::println);
        intArr1.forEach(x-> System.out.println(Arrays.toString(x)));
    }
}
